package com.wuhao.shootclient.util.eventbus;

/**
 * Author: hao
 * Version: V1.0版本
 * Description: EventBus传递消息总体类
 * Date: 2018/6/30
 */

public class EventCenter {

    private int eventCode = -1;
    private Object[] datas;

    public EventCenter(int eventCode) {
        this.eventCode = eventCode;
    }

    public EventCenter(int eventCode, Object... datas) {
        this.eventCode = eventCode;
        this.datas = datas;
    }

    public int getEventCode() {
        return eventCode;
    }

    public void setEventCode(int eventCode) {
        this.eventCode = eventCode;
    }

    public Object getData() {
        return datas[0];
    }


    public Object[] getDatas() {
        return datas;
    }

    public void setDatas(Object[] datas) {
        this.datas = datas;
    }
}
